package com.kaifamiao.date;

import java.util.Date;

/**
 * 说人话: 一个Date实例就是一个毫秒值的容器
 */
public class DateInstance {

    public static void main(String[] args) {

        long millis = System.currentTimeMillis();
        System.out.printf("从历元(Epoch)至此所经历的毫秒数 %d\n" , millis );

        Date first = new Date( millis );
        System.out.println( first.toString() );

        Date second = new Date();
        System.out.println( second.toString() );

    }
}
